Adjoint of square matrix